package com.game;

import android.database.Cursor;

public class ViewGameItemActivity extends ViewTableActivity {
	@Override 
	protected void initalize(){
		setContentView(R.layout.dblistmain);
		myTable = "gameItems";
		layoutId = R.layout.viewgameitem;
		TO_ITEM = new int[] { R.id.gi_rowId, R.id.gi_rowGameId,
				R.id.gi_rowChoiceName, R.id.gi_rowTextPost, R.id.gi_rowTextPre };
	}

	@Override
	protected String getItemName(int Id){
		Cursor nameCursor = myDBAdapter.getGameItemByIdCursor(Id);
		startManagingCursor(nameCursor);
		nameCursor.moveToFirst();
		return nameCursor.getString(nameCursor.getColumnIndex(DBAdapter.CHOICE_NAME));
	}
}
